import request from '../../utils/request';
let baseRequest_url = "http://127.0.0.1:4890/portal";
//  --------------------------------------------------------------------------------------------------------------- //
// 广告位图片列表分页查询
export const findAdvertPicListPage = query => {
    return request({
        url: baseRequest_url+'/admin/advertPic/findAdvertPicListPage',
        method: 'get',
		params: query,
    });
};
// 广告位图片详情查询
export const findAdvertPicInfoById = query => {
    return request({
        url: baseRequest_url+'/admin/advertPic/findAdvertPicInfoById/'+query,
        method: 'get',
		params: query,
    });
};
// 新增广告位图片
export const addAdvertPic = data => {
    return request({
        url: baseRequest_url+'/admin/advertPic/saveAdvertPic',
        method: 'post',
		data: data,
    });
};
// 编辑广告位图片
export const saveAdvertPic = data => {
    return request({
        url: baseRequest_url+'/admin/advertPic/saveAdvertPic',
        method: 'put',
		data: data,
    });
};
// 删除广告位图片
export const deleteAdvertPic = data => {
    return request({
        url: baseRequest_url+'/admin/advertPic/deleteAdvertPic/'+data,
        method: 'delete',
    });
};
// 批量删除广告位图片
export const batchDeleteAdvertPic = data => {
    return request({
        url: baseRequest_url+'/admin/advertPic/batchDeleteAdvertPic',
        method: 'delete',
        data: data
    });
};
// 广告位图片状态批量更新
export const batchEditStatus = data => {
    return request({
        url: baseRequest_url+'/admin/advertPic/batchEditStatus',
        method: 'put',
		data: data,
    });
};